import React, {Component} from 'react';
import './App.css';
import {ComponentBaseExtend} from './components/views/component-extend';
import RouterMapping from './components/config/router';
import {BrowserRouter as Router, Switch} from "react-router-dom";
import AccountLogin from "src/components/views/view1/view-child";

class App extends ComponentBaseExtend<IMyComponentProps> {
    constructor(props: IMyComponentProps) {
        super(props);
        this.state = {hasError: false};
    }

    componentDidCatch(error: Error, info: React.ErrorInfo) {
        // this.setState({hasError: true});

    }


    render() {
        // if (this.state.hasError) {
        //     return <h1>Something went wrong.</h1>;
        // }

        return (
            <div className="KM-OGAWA-core">
                <AccountLogin/>
                {/*<Router>*/}
                    {/*<Switch>*/}
                        {/*<RouterMapping />*/}
                    {/*</Switch>*/}
                {/*</Router>*/}
            </div>
        );
    }
}

export default App;